﻿using SHZY.Common.Const;
using SHZY.Common.Contracts;
using SqlSugar;

namespace SHZY.Business.Entitys;

/// <summary>
/// 报检单实体.
/// </summary>
[SugarTable("qms_busi_inspection", "报检单")]
[Tenant(ClaimConst.TENANTID)]
public class QmsBusiInspectionEntity : CLDEntityBase
{
    /// <summary>
    /// 报检单号.
    /// </summary>
    [SugarColumn(ColumnName = "F_Code", ColumnDescription = "报检单号")]
    public string Code { get; set; }

    /// <summary>
    /// 报价日期.
    /// </summary>
    [SugarColumn(ColumnName = "F_Date", ColumnDescription = "报价日期")]
    public DateTime? Date { get; set; }

    /// <summary>
    /// 报检类型(字典项：业务类型:默认来料检).
    /// </summary>
    [SugarColumn(ColumnName = "F_Type", ColumnDescription = "报检类型(字典项：业务类型:默认来料检)")]
    public string Type { get; set; }

    /// <summary>
    /// 物料.
    /// </summary>
    [SugarColumn(ColumnName = "F_MaterialCode", ColumnDescription = "物料")]
    public string MaterialCode { get; set; }

    /// <summary>
    /// 供应商.
    /// </summary>
    [SugarColumn(ColumnName = "F_Supplier", ColumnDescription = "供应商")]
    public string Supplier { get; set; }

    /// <summary>
    /// 来料数量.
    /// </summary>
    [SugarColumn(ColumnName = "F_IncomingQty", ColumnDescription = "来料数量")]
    public int? IncomingQty { get; set; }

    /// <summary>
    /// 批次号.
    /// </summary>
    [SugarColumn(ColumnName = "F_BatchNumber", ColumnDescription = "批次号")]
    public string BatchNumber { get; set; }

    /// <summary>
    /// 检验员.
    /// </summary>
    [SugarColumn(ColumnName = "F_EmployeeCode", ColumnDescription = "检验员")]
    public string EmployeeCode { get; set; }

    /// <summary>
    /// 检验员名称.
    /// </summary>
    [SugarColumn(ColumnName = "F_EmployeeName", ColumnDescription = "检验员名称")]
    public string EmployeeName { get; set; }

    /// <summary>
    /// 采购订单号.
    /// </summary>
    [SugarColumn(ColumnName = "F_OrderNo", ColumnDescription = "采购订单号")]
    public string OrderNo { get; set; }

    /// <summary>
    /// 检验类型(字典项).
    /// </summary>
    [SugarColumn(ColumnName = "F_InspectType", ColumnDescription = "检验类型(字典项)")]
    public string InspectType { get; set; }

    /// <summary>
    /// 备注.
    /// </summary>
    [SugarColumn(ColumnName = "F_Remark", ColumnDescription = "备注")]
    public string Remark { get; set; }

    /// <summary>
    /// 状态：0 未确认 1 已提交   2 已确认.
    /// </summary>
    [SugarColumn(ColumnName = "F_Status", ColumnDescription = "状态：0 未确认 1 已提交   2 已确认")]
    public int? Status { get; set; }

    /// <summary>
    /// 0 未逾期 1 已逾期.
    /// </summary>
    [SugarColumn(ColumnName = "F_Overdue", ColumnDescription = "0 未逾期 1 已逾期")]
    public int? Overdue { get; set; }

    /// <summary>
    /// 检验批号
    /// </summary>
    [SugarColumn(ColumnName = "F_InspectionlogCode", ColumnDescription = "GUID")]
    public string InspectionlogCode { get; set; }
}